/**
 * 全局 store
 */

import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
// 使用 rudux 调式工具
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
import reducer from './reducer';



const store = createStore(reducer, composeEnhancers(applyMiddleware(thunk)));

export default store;
